package com.gr.labbackend.controller.account;

import com.gr.labbackend.service.account.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class UserInfoController {
    @Autowired
    private UserInfoService infoService;

    @GetMapping("/api/account/info")
    public Map<String, String> getInfo() {
        return infoService.getInfo();
    }
}